<template>
    <component :is="options[name]"></component>
</template>
    
<script setup>
import { watch ,ref} from 'vue';
import options from './options.js';
const props = defineProps(['componentsName'])
let name = ref()
watch(() => props.componentsName, n => {
    name.value = n
})
</script>
    
<style scoped>

</style>